﻿window.onload=function(){
	var ou=document.getElementById('username');
	var op=document.getElementById('password');
	var orp=document.getElementById('repassword');
	var oc=document.getElementById('code');
	
	function sub(){	
		if(ou.value=="" || op.value="" || orp.value="" || oc.value=""){
			alert('信息不能为空');
		}else{
			document.myform.submit();
		}
				
		
	}
}	
